home *** CD-ROM | disk | FTP | other *** search
- global folderName, sndPath, gMachine, gCurPicture, gTabSprite, gCurMode, gCurShutter, gCurFStop, gBestExposureList, gHaveGoneToAperturePriority, gHaveGoneToShutterPriority
-
- on startMovie
- set gCurPicture to 1
- set gCurShutter to 1
- set gCurFStop to 1
- set folderName to "exposure" & gMachine
- set sndPath to the pathName & "snd" & gMachine & "exposure" & gMachine
- set gBestExposureList to list(158, 151, 144, 137, 130, 123, 116)
- initForEachMovie(#exposure)
- preLoadRange(62, 104, 1)
- set gHaveGoneToAperturePriority to 0
- set gHaveGoneToShutterPriority to 0
- end
-
- on stopMovie
- end
-
- on doThumbNailLeftRight leftOrRight
- if leftOrRight = -1 then
- if gCurPicture = 1 then
- set gCurPicture to 2
- else
- set gCurPicture to gCurPicture - 1
- end if
- else
- if gCurPicture = 2 then
- set gCurPicture to 1
- else
- set gCurPicture to gCurPicture + 1
- end if
- end if
- doThumbNailAnimation(29, 19 + (gCurPicture - 1), 2, leftOrRight)
- setupThumbNailCounter(gCurPicture, 2)
- NewPicture(0)
- end
-
- on NewPicture dosound
- if dosound then
- puppetSound("CameraShutter")
- mydelay(9)
- end if
- if gCurMode = 1 then
- set newPict to 110 + ((gCurPicture - 1) * 60) + ((gCurShutter - 1) * 8) + (6 - (gCurFStop - 1))
- else
- if gCurMode = 2 then
- set newPict to getAt(gBestExposureList, 8 - gCurShutter) + ((gCurPicture - 1) * 60)
- else
- set newPict to getAt(gBestExposureList, 8 - gCurFStop) + ((gCurPicture - 1) * 60)
- end if
- end if
- set the castNum of sprite 7 to newPict
- updateStage()
- repeat while soundBusy(1)
- end repeat
- puppetSound(0)
- end
-
- on finishIntro
- set the mouseDownScript to EMPTY
- set the mouseUpScript to EMPTY
- finishIntroBecauseOfMouseClick()
- end
-
- on finishIntroBecauseOfMouseClick
- global gSavePhotoCastNum, start, oldStart, gDoOnMouseDown
- puppetTempo(30)
- puppetSprite(7, 1)
- set the castNum of sprite 7 to gSavePhotoCastNum
- updateTabs()
- updateStage()
- set gDoOnMouseDown to EMPTY
- finishIntroCore()
- end
-
- on doModeChange
- set the mouseUpScript to EMPTY
- dontPassEvent()
- if gCurMode = 1 then
- set gCurMode to 2
- else
- if gCurMode = 2 then
- set gCurMode to 3
- else
- if gCurMode = 3 then
- set gCurMode to 1
- end if
- end if
- end if
- if gCurMode = 1 then
- onOffScreen(15, 0)
- onOffScreen(16, 0)
- else
- if gCurMode = 2 then
- onOffScreen(15, 1)
- onOffScreen(16, 0)
- else
- onOffScreen(15, 0)
- onOffScreen(16, 1)
- end if
- end if
- set the castNum of sprite 11 to 62 + ((gCurMode - 1) * 2)
- updateStage()
- if gCurMode = 2 then
- set the castNum of sprite 40 to the castNum of sprite 40 - 1
- doShutterChange(0)
- if gHaveGoneToShutterPriority = 0 then
- set gHaveGoneToShutterPriority to 1
- sound playFile 2, sndPath & "shutter.aif"
- updateStage()
- end if
- else
- if gCurMode = 3 then
- set the castNum of sprite 10 to the castNum of sprite 10 - 1
- doFStopChange(0)
- if gHaveGoneToAperturePriority = 0 then
- set gHaveGoneToAperturePriority to 1
- sound playFile 2, sndPath & "aperture.aif"
- updateStage()
- end if
- else
- doShutterChange(0)
- doFStopChange(0)
- end if
- end if
- end
-
- on onOffScreen asprite, putOnScreen
- set curLocH to the locH of sprite asprite
- if putOnScreen then
- if curLocH > 2000 then
- set the locH of sprite asprite to curLocH - 2000
- end if
- else
- if curLocH < 2000 then
- set the locH of sprite asprite to curLocH + 2000
- end if
- end if
- end
-
- on doFStopChange dosound
- if voidp(dosound) then
- set dosound to 1
- end if
- set the mouseUpScript to EMPTY
- dontPassEvent()
- set the castNum of sprite 10 to 75 + ((gCurFStop - 1) * 2) + 1
- if gCurMode = 3 then
- set gCurShutter to gCurFStop
- set the castNum of sprite 40 to 26 + (gCurShutter - 1)
- end if
- NewPicture(dosound)
- end
-
- on doShutterChange dosound
- if voidp(dosound) then
- set dosound to 1
- end if
- set the mouseUpScript to EMPTY
- dontPassEvent()
- set the castNum of sprite 40 to 91 + ((gCurShutter - 1) * 2) + 1
- if gCurMode = 2 then
- set gCurFStop to gCurShutter
- set the castNum of sprite 10 to 48 + (gCurFStop - 1)
- end if
- NewPicture(dosound)
- end
-